<?php
class Controller extends Smarty
{
    public function __construct()
    {
        // 模板文件目录
        $this->template_dir = './views';
        // 编译文件目录
        $this->compile_dir = './runtime/views_c';
        // 配置文件目录
        $this->config_dir = './configs';
        // 缓存文件目录
        $this->cache_dir = './runtime/caches';

        // 模板变量定界符
        $this->left_delimiter = '{{';
        $this->right_delimiter = '}}';
        // 配置缓存
        $this->caching = false; // true 开启 false关闭
    }
    public function __call($fun, $param)
    {
        header("HTTP/1.0 404 not found");
        echo '<h1>404 Not Found --控制器</h1>';
        exit;
    }
}